package com.qf.hello.spring;

public class App {
    public static void main(String[] args) throws Exception {
        MyFactory factory=new MyFactory();
        //传入名字获取对象
        Object userService = factory.getBean("userService");
        System.out.println("userService = " + userService);
    }
}
